package com.gjy.spring.b03;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-12-18 16:41:47
 */
@Aspect
@Component
public class MyAspect {

    @Before("execution(* com.gjy.spring.b03.Bean1.*(..))")
    public void before() {
        System.out.println("before");
    }
}
